# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=vvave
pkgver=2.1.2
pkgrel=0
pkgdesc="VVAVE Music Player"
# armhf blocked by qt5-qtdeclarative
# s390x, ppc64le and riscv64 blocked by qt5-qtwebview
arch="all !armhf !s390x !ppc64le !riscv64"
url="https://invent.kde.org/maui/vvave"
license="GPL-3.0-or-later"
depends="
	kde-icons
	qt5-qtbase-sqlite
	"
makedepends="
	attica-dev
	extra-cmake-modules
	kconfig-dev
	ki18n-dev
	kio-dev
	knotifications-dev
	mauikit-dev
	mauikit-accounts-dev
	mauikit-filebrowsing-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qtwebsockets-dev
	qt5-qtwebview-dev
	samurai
	syntax-highlighting-dev
	taglib-dev
	"
source="https://download.kde.org/stable/maui/vvave/$pkgver/vvave-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
3851b12e828691b83386bd6f6b774df8f2569696fa39fff285e1e99f9334669943078ff99b5f0998e9e54c51fd1ae80d9e1e9c67e7d0209eb38760df478a5284  vvave-2.1.2.tar.xz
"
